package cn.iocoder.aics.module.member.controller.admin.chathistory.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.aics.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static cn.iocoder.aics.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 聊天记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ChatHistoryPageReqVO extends PageParam {

    @Schema(description = "类型", example = "1")
    private Integer type;

    @Schema(description = "用户ID", example = "11218")
    private Long userId;

    @Schema(description = "问题")
    private String question;

    @Schema(description = "答案")
    private String answer;
    @Schema(description = "上下文ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11218")
    @NotNull(message = "上下文ID不能为空")
    private Long contextId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}